#ifndef EPOLL_DISPATCHER_DATA_H
#define EPOLL_DISPATCHER_DATA_H

#define MAXEVENTS 1024

class EpollDispatcherData {

public:
	EpollDispatcherData():event_count(0), nfds(0), realloc_copy(0){
		efd = epoll_create1(0);

		if (efd == -1) {
			printf("epoll create failed\n");
		}
		
		events = (epoll_event *)calloc(MAXEVENTS, sizeof(struct epoll_event));
	}

	~EpollDispatcherData() {
		// free(events);
	}

    int event_count;
    int nfds;
    int realloc_copy;
    int efd;
    struct epoll_event *events;
};



#endif